home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / tcl / Tcl_Merge.man < prev    next >
Encoding:
Text File  |  1991-05-02  |  1.5 KB  |  69 lines

  1.  
  2.  
  3.  
  4. Tcl_Merge         Tcl Command Language Library          Tcl_Merge
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      Tcl_Merge - generate a Tcl list from a collection of strings
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ttccll..hh>>
  15.  
  16.      char *
  17.      TTccll__MMeerrggee(_a_r_g_c, _a_r_g_v)
  18.  
  19. AARRGGUUMMEENNTTSS
  20.      int       _a_r_g_c           (in)      Number of strings.
  21.  
  22.      char      *_a_r_g_v[]        (in)      Array of strings to  com-
  23.                                         bine   into  list.   Must
  24.                                         have _a_r_g_c entries.
  25.  
  26. _________________________________________________________________
  27.  
  28.  
  29. DDEESSCCRRIIPPTTIIOONN
  30.      TTccll__MMeerrggee is a utility procedure used by several of the  Tcl
  31.      commands.   Given  a  collection  of strings, it generates a
  32.      result string that has proper list structure, such that  the
  33.      iinnddeexx  Tcl  command  may be used to extract out the original
  34.      strings.  In order to do this, TTccll__MMeerrggee  may  have  to  add
  35.      braces and/or backslashes.  The result string is dynamically
  36.      allocated  using  mmaalllloocc(());   the  caller  must   eventually
  37.      release the space using ffrreeee(()).
  38.  
  39.  
  40. KKEEYYWWOORRDDSS
  41.      list, strings
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0          Printed:  May 2, 1991                     1
  66.  
  67.  
  68.  
  69.